#ifndef global_h
#define global_h

#include <gst/gst.h>
#include <glib.h>

#include <string>
using namespace std;

#if !(GST_CHECK_VERSION(0,10,31))
#define OLD_TAGS
#endif

#ifdef CAANOO
#define GP2X
#endif

// Pandora is not actually supported. This is future-proofing
#if defined(GP2X) || defined(PANDORA)
#define GLES
#define EGL
#endif

void log_print(const char* file, const unsigned long line, const char* format, ...);
#define ELOG(x, ...) log_print(__FILE__, __LINE__, x, __VA_ARGS__)
#define ELOG_FILE "error.log"

#define SET_PAIR(a, b, c) {a[0] = b; a[1] = c;}

struct Track {
	unsigned long index;
	string filename;
	string track;
	string artist;
	string album;
	bool enabled;
	void set_tags();
};

#endif
/* vim:set ts=2 sts=2 sw=2 noexpandtab: */
